# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tofi
pkgver=0.1.1
pkgrel=0
pkgdesc="Tiny dynamic menu for Wayland"
url="https://github.com/philj56/tofi"
arch="all"
license="MIT"
makedepends="
	cairo-dev
	freetype-dev
	harfbuzz-dev
	libxkbcommon-dev
	meson
	pango-dev
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	"
source="https://github.com/philj56/tofi/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
options="!check"  # no tests provided

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
397918b70d9e71befefcaac93b05d83d82779d14dc1aeb2ce088e8b3f5e6419c94aedb830e18bfa8f94fb66d2673ea93fe8ccf353b546d73d063260eec16d453  tofi-0.1.1.tar.gz
"
